Solve Optimization Problems With Lagrange Multipliers In Python